﻿using DFGK_WMS.Model.DTO;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface ITRoutewayRepository: IBaseRepository<TRouteway>
    {
        /// <summary>
        /// 添加巷道信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool AddTrout(TRoutewayDto obj);
        /// <summary>
        /// 删除巷道信息
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        bool DelTrout(int uid);
        /// <summary>
        /// 修改巷道信息
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool UpdateTrout(TRoutewayDto obj);
        /// <summary>
        /// 显示巷道信息（弃用）
        /// </summary>
        /// <param name="xname"></param>
        /// <param name="kid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TRoutewayDto> GetTroutList(string xname,int kid,int pageIndex, int pageSize, out int totalCount);

        /// <summary>
        /// 显示巷道信息
        /// </summary>
        /// <param name="xname"></param>
        /// <param name="wid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TRouteway> GetTroutnList(string xname, int wid, int pageIndex, int pageSize, out int totalCount);
        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        TRouteway GetTroutById(int id);
        /// <summary>
        /// 获取库房(仓库)信息
        /// </summary>
        /// <returns></returns>
        List<TWarehouse> GetTwarehouseList();
    }
}
